<template>
	<view>
		<view class="closingRight">
			<image src="../static/closingRight.png" mode=""></image>
			<view class="text">购买成功</view>
		</view>
		<view class="infomation">
			<view class="flex bige">
				<view class="planIcon">
					<text class="cuIcon-recharge topIcon"></text>
					<text class="cuIcon-round bottonIcon"></text>
				</view>
				<view class="planRight">
					<view class="">
						预计{{date}}将为你扣款{{money}}元
					</view>
					<view class="">
						后续每周三将进行扣款,非交易日往后延续
					</view>
				</view>
			</view>
			<view class="price">
				<view class="loansLeft">
					{{fddname}}
				</view>
				<view class="loansRight">
					{{money}}元
				</view>
			</view>
		</view>
		<view class="button">
			<navigator class="checked" url="/pagesC/myAssets/myAssets">查看资产</navigator>
			<navigator class="more" url="/pagesA/t-fundtop/t-fundtop">再去看看</navigator>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				money:0,
				fddname:"",
				date: new Date().toISOString().slice(5, 10)
			}
		},
		onLoad(data) {
			this.money = data.money
			this.fddname = data.name
		},
		methods: {

		}
	}
</script>

<style>
	/* page {
		background-color: #FFFFFF
	} */
</style>

<style scoped lang="scss">
	.closingRight {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;

		image {
			width: 124rpx;
			height: 124rpx;
			margin: 68rpx 0;
		}

		.text {
			font-size: 32rpx;
			font-weight: 400;
			color: #474747;
		}
	}

	.infomation {
		margin-top: 15%;

		.bige {
			padding: 0 40rpx;

			.planIcon {
				position: relative;
				color: #007AFF;

				.topIcon {
					position: absolute;
					top: 30rpx;

					&::after {
						content: "";
						display: block;
						height: 67rpx;
						position: absolute;
						border-left: 1rpx solid #007AFF;
						top: 27rpx;
						left: 14rpx;

					}
				}

				.bottonIcon {
					transform: scale(0.8);
					position: absolute;
					top: 116rpx;
				}
			}

			.planRight {
				padding-left: 50rpx;
				font-size: 32rpx;
				font-weight: 400;
				line-height: 44px;
				color: #474747;
			}
		}

		.price {
			display: flex;
			margin-top: 20rpx;
			padding: 24rpx 90rpx;
			justify-content: space-between;
			align-items: center;
			border: 1rpx solid #E6E6E6;

			.loansLeft {
				font-size: 32rpx;
				font-weight: bold;
				color: #323232;
			}

			.loansRight {
				font-size: 40rpx;
				font-weight: bold;
				color: #323232;
			}
		}
	}

	.button {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		navigator {
			width: 670rpx;
			height: 88rpx;
			line-height: 88rpx;
			text-align: center;
			// border: 1rpx solid #007AFF;
			margin-top: 48rpx;
			font-size: 32rpx;
			font-weight: 400;
			background: #3476F1;
			color: #FFFFFF;
		}
		.more {
			background: #D1D1D1;
			color: #474747;
		}
	}
</style>
